<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title>User Registration</title>
</head>
<body>
<h2>User Registration</h2>
<form th:action="@{/register}" th:object="${user}" method="post">
    <div>
        <label for="fullName">Full Name:</label>
        <input type="text" id="fullName" th:field="*{fullName}" required>
    </div>
    <div>
        <label for="email">Email:</label>
        <input type="email" id="email" th:field="*{email}" required>
    </div>
    <div>
        <label for="password">Password:</label>
        <input type="password" id="password" th:field="*{password}" required>
    </div>
    <div>
        <label for="gender">Gender:</label>
        <input type="radio" id="male" th:field="*{gender}" value="Male"> Male
        <input type="radio" id="female" th:field="*{gender}" value="Female"> Female
    </div>
    <div>
        <label for="profession">Profession:</label>
        <select id="profession" th:field="*{profession}">
            <option value="Developer">Developer</option>
            <option value="Designer">Designer</option>
            <option value="Analyst">Analyst</option>
        </select>
    </div>
    <div>
        <label for="married">Married:</label>
        <input type="checkbox" id="married" th:field="*{married}">
    </div>
    <div>
        <label for="note">Note:</label>
        <textarea id="note" th:field="*{note}"></textarea>
    </div>
    <div>
        <button type="submit">Register</button>
    </div>
</form>
</body>
</html>